﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using EasyStudy.Logic.Remind;

namespace EasyStudy.UI
{
    public partial class FrmMain : Form
    {
        private RemindCheck checker;

        public FrmMain()
        {
            InitializeComponent();

            timerCheck.Interval = 1000;
            timerCheck.Start();
            checker = new RemindCheck();
        }

        private void timerCheck_Tick(object sender, EventArgs e)
        {
            checker.Check();
        }

        private void 新建任务ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmAddTask formAddTask = new FrmAddTask();
            formAddTask.ShowDialog(this);
        }
    }
}
